package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.content.model.dto.CourseTeacherDTO;
import com.xuecheng.content.entity.CourseTeacher;

import java.util.List;

/**
 * <p>
 * 课程-教师关系表 服务类
 * </p>
 *
 * @author 黄子弟
 * @since 2021-12-15
 */
public interface CourseTeacherService extends IService<CourseTeacher> {
    /**
     *查询课程下教师列表
     * @param courseBaseId  课程id
     * @param companyId  机构id
     * @return
     */
    List<CourseTeacherDTO> queryCourseTeacherList(Long courseBaseId, Long companyId);

    /**
     * 增加或修改教师信息
     * @param courseTeacherDTO
     * @param companyId
     * @return
     */
    CourseTeacherDTO createOrModifyCourseTeacher(CourseTeacherDTO courseTeacherDTO,Long companyId);

    /**
     * 删除教师信息
     * @param courseId   课程id
     * @param courseTeacherId 教师id
     */
    void deleteCourseTeacher(Long courseId,Long courseTeacherId,Long companyId);
}
